package cn.kshost.zqyg.product.service.impl;

import cn.kshost.zqyg.model.entity.product.Brand;
import cn.kshost.zqyg.product.mapper.BrandMapper;
import cn.kshost.zqyg.product.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional(rollbackFor = Exception.class)
public class BrandServiceImpl implements BrandService {

    @Autowired
    private BrandMapper brandMapper;
    @Override
    public List<Brand> selectAll() {
       return brandMapper.selectAll();
    }
}
